package cn.edu.eight.food.dao;


import cn.edu.eight.food.model.OfCategory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface OfCategoryMapper {
    int insert(OfCategory record);

    int insertSelective(OfCategory record);

    //查询所有分类
    List<OfCategory> ofCategoryList(@Param("categoryName") String categoryName);
}